package chixing.day08.work;

public class MyCheckingAccount extends BankAccount {

    public MyCheckingAccount(String accountNumber, double initialBalance) {
        super(accountNumber, initialBalance);
    }

    // 每月更新：扣除10元手续费
    @Override
    public void monthlyUpdate() {
        if (getBalance() >= 10) {
            setBalance(getBalance() - 10);
            System.out.println("支票账户月度更新: 扣除手续费 10 元，更新后余额: " + getBalance() + " 元");
        } else {
            System.out.println("支票账户月度更新: 余额不足，无法扣除手续费");
        }
    }
}

